/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ucm;

import java.sql.SQLException;
import model.Flight;

/**
 * UCRegisterAirport
 *
 * Goal: add Airport to database
 * Primary Actor: User
 * Precondition: Connected to database. Manaeger is logged in. Airport doesnt exist.
 * Postcondtion: Airport is added to database
 * 
 * @author Tobias Robinson
 */

public class UCRegisterAirport {

    public UCRegisterAirport() throws SQLException {
        run();
    }
    
    /**
     * 1. Actor selects Add Airport.
     * 2. The system requests the actor to enter airport info.
     * 4. System verifies user input.
     * 5. System adds airport to database.
     * 6. System notifies actor aiport is added.
     */
    public void run() throws SQLException {
        Flight.loadRegisterAirportView();
    }

}
